<template>
<div>
  <project-form @submitForm='saveAnswer'></project-form>
</div>
</template>

<script>
import ProjectForm from '@/views/project/form/skin/ProjectForm'
export default {
  name: 'Write',
  components: { ProjectForm },
  data () {
    return {
      answerData
    }
  },
  methods: {
    saveAnswer (answerData) {
      this.answerData = answerData
      answerData.projectKey = this.$route.query.key
      console.log('this.answerData',this.answerData)

      this.$http.post('project/result/save', this.answerData)
      alert('恭喜你提交成功了！')
    }
  }
}
</script>

<style scoped>
</style>
